-- GENERATED SPELL FOR [Scarlet Marksman] --


function spell0_28610(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(18651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28610', 600, 1)
end

function spell1_28610(pUnit, Event) --@Raptor Strike,n/a--
pUnit:FullCastSpellOnTarget(32915,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28610', 635, 1)
end

function spell2_28610(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28610', 606, 1)
end

function Sorts_28610(pUnit, Event)
local choix_sorts_28610 = math.random(0, 2)
if choix_sorts_28610 == 0 then
pUnit:RegisterEvent('spell0_28610', 1, 1)
end
if choix_sorts_28610 == 1 then
pUnit:RegisterEvent('spell1_28610', 1, 1)
end
if choix_sorts_28610 == 2 then
pUnit:RegisterEvent('spell2_28610', 1, 1)
end
end

function mob28610_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28610', math.random(1500, 3000), 1)
end

function mob28610_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28610_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28610_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28610, 1, 'mob28610_Action')
RegisterUnitEvent(28610, 2, 'mob28610_Leave')
RegisterUnitEvent(28610, 3, 'mob28610_Kill')
RegisterUnitEvent(28610, 4, 'mob28610_Die')
